import axios from '@/libs/api.request'

const request = (constApi, params = {}, method = 'post') => {
  // console.log(constApi)
  let res = axios.request({
    url: constApi.url,
    method: method,
    params
  })
  // console.log('接口请求返回值：')
  // console.log(res)
  return res
}


window.Api = {
  request
}
// export default {
//   request
// }
